@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

ul {
  padding: 0;
}

p {
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}
#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track-piece {
  background-color: rgba(0, 0, 0, 0.2);
  -webkit-border-radius: 6px;
}

::-webkit-scrollbar-thumb:vertical {
  height: 10px;
  background-color: rgba(125, 125, 125, 0.7);
  -webkit-border-radius: 6px;
}

::-webkit-scrollbar-thumb:horizontal {
  width: 10px;
  background-color: rgba(125, 125, 125, 0.7);
  -webkit-border-radius: 6px;
}

// main-container global css
.app-container {
  padding: 10px;
}

.topSearch {
  overflow: hidden;
  > .el-row {
    margin-bottom: 10px;
  }
  .el-button,
  .el-select,
  .el-input,
  .el-upload,
  .el-date-editor {
    margin-right: 10px;
  }
  .el-input,
  .el-select {
    width: 150px;
  }
  .el-button + .el-button {
    margin-left: 0;
  }
  .right {
    float: right;
  }
}

.el-picker-panel {
  &.productDetPicker {
    .el-time-panel {
      left: unset;
      right: 10px;
    }
  }
}
.el-table {
  margin-bottom: 40px;
    border-color: #ddd;
    td, th{
      border-color: #ddd;
      padding: 2px 0;
    }
    th.is-leaf {
      border-color: #ddd;
    }
  &:before, &:after {
    background-color: #ddd;
  }
}
.el-table .cell {
  text-overflow: clip;
}
#btmPagination {
  position: fixed;
  bottom: 0px;
  right: 0px;
  width: calc(100% - 54px);
  background: #fff;
  padding-bottom: 5px;
  padding-left: 40px;
  transition: width 0.28s;
  z-index: 2;
  &.open {
    width: calc(100% - #{$sideBarWidth});
  }
}
.el-dialog__body {
  padding: 20px;
}
.el-tooltip__popper {
  max-width: 300px;
}

.myDatePicker.el-date-editor {
  width: 245px;
  input {
    width: 90px;
  }
  .el-range-separator {
    width: 23px;
  }
}

.productImg {
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 20px;
  font-size: 20px;
  &.big {
    width: 80px;
    height: 80px;
    line-height: 20px;
  }
  &:hover {
    cursor: pointer;
  }
}

.dialogLoadingBox {
  .dialog-footer {
    padding: 10px 0;
    text-align: right;
  }
}

th > .cell {
  color: #000000;
  font-weight: bold;
  font-size: 13px;
}

.el-form-item__error {
  white-space: nowrap;
}
/*修改el-input框数字默认的样式*/
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
input[type='number'] {
  -moz-appearance: textfield;
}
